package cn.tedu.charging.order.feign;

import cn.tedu.charging.common.pojo.param.ProgressCostParam;
import cn.tedu.charging.common.pojo.vo.ProgressCostVO;
import cn.tedu.charging.common.protocol.JsonResult;
import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 负责调用cost计价中心的接口
 * 1. 计算金额
 */
@FeignClient("charging-service-cost")
public interface CostClient {
    @PostMapping("/cost/bill/calculate")
    public JsonResult<ProgressCostVO>
    calculateCost(@RequestBody ProgressCostParam param);
}
